package com.hoolai.qps.server.impl;

import org.springframework.stereotype.Service;

import com.hoolai.qps.bo.Player;
import com.hoolai.qps.proto.RespCmdProto;
import com.hoolai.qps.proto.RespCmdProto.ItemNameRespCmdRepo;
import com.hoolai.qps.server.ItemService;

@Service("itemService")
public class ItemServiceImpl implements ItemService {

    @Override
    public void getItem(Integer id, Player player) {
        RespCmdProto.ItemNameRespCmdRepo.Builder builder = ItemNameRespCmdRepo.newBuilder();
        builder.setName("name:" + id);
        player.send(builder.build());
    }

}
